<?php
ob_start();
include "src/user/user.class.php";
include "src/user/controller.class.php";
session_start();
include_once "security.php";
$entUser = Security::getCurrentUser();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset-UTF-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Expires" content="0" />
<script type="text/javascript" src="js/utils.js"></script> 
<script language="JavaScript" type="text/javascript">
function ChangeClassName(strMenuId, strClassName){
	var e;
	e = document.getElementById(strMenuId);
	e.className = strClassName;
	}
// required for popup window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  return false;
}
</script>

<link type="text/css" rel="Stylesheet" href="css/simplicity/theme.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="css/simplicity/print.css" media="print" />
<title><?php print $pageTitle?></title>
</head>

<body>

  <div id="page">
	<div id="header" class="clearfix">
		<div id="branding">
    		Welcome, <?php print $entUser->username?>
			<?php
    		if (!isset($_SESSION['X_USER'])) {
    		?>
    		|<a href="index_customer.php?action=new">Register</a>
    		|<a href="login.php">Login</a>
    		<?php
    		}else {
    		?>
    		|<a href="index_customer.php?action=profile">Profile</a>
			|<a href="logout.php">Logout</a>    			
    		<?php 
    		}
    		?> 
		</div>
		<hr />
	</div>	
	<div id="content" class="clearfix">
    	<div id="main">
	<?php
	include("menu.php");
	?>	
	